import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import java.io.*;
public class httpClient {

    inputUrl input = new inputUrl();
    HttpClient client;
    HttpGet request;
    HttpResponse response;

    String getHttpResponse() throws IOException,NoSuchUrlException {

        client = new DefaultHttpClient();
        request = new HttpGet(input.getUrl());
        response = client.execute(request);
        String line = "";
        InputStreamReader ISR=new InputStreamReader(response.getEntity().getContent());
        BufferedReader BR = new BufferedReader(ISR);
        StringBuffer SB=new StringBuffer();
        while ((line = BR.readLine()) != null) {
            SB.append(line);
        }
        BR.close();
        ISR.close();
        return SB.toString();
    }
}
